home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / enlightenment / modules / weather / weather.edc < prev    next >
Text File  |  2006-01-09  |  5KB  |  186 lines

  1. fonts {
  2.    font: "vera.ttf"   "Vera";
  3.    font: "VeraBd.ttf" "Vera Bold";
  4. }
  5. collections {
  6.    group {
  7.       name: "weather/main";
  8.       parts {
  9.          part {
  10.             name:         "icon";
  11.             type:         SWALLOW;
  12.             mouse_events: 0;
  13.             description {
  14.                state:    "default" 0.0;
  15.                aspect:   1.0 1.0;
  16.                align:    0.0 0.0;
  17.                rel1 {
  18.                   relative: 0.0 0.0;
  19.                   offset:   0   0;
  20.                }
  21.                rel2 {
  22.                   relative: 1.0 1.0;
  23.                   offset:   -1  -1;
  24.                }
  25.                color: 0 0 0 0;
  26.             }
  27.          }
  28.          part {
  29.             name:         "temp";
  30.             type:         TEXT;
  31.             effect:       SOFT_SHADOW;
  32.             mouse_events: 0;
  33.             description {
  34.                state: "default" 0.0;
  35.                rel1 {
  36.                   relative: 0.0 0.0;
  37.                   offset:   2   2;
  38.                }
  39.                rel2 {
  40.                   relative: 1.0 1.0;
  41.                   offset:   -1  -1;
  42.                   to:       "icon";
  43.                }
  44.                color:  255 255 255 255;
  45.                color3:   0   0   0  70;
  46.                text {
  47.                   text:  "30";
  48.                   font:  "Vera";
  49.                   size:  14;
  50.                   min:   1 1;
  51.                   align: 0.0 0.0;
  52.                }
  53.             }
  54.          }
  55.          part {
  56.             name:         "location";
  57.             type:         TEXT;
  58.             effect:       SOFT_SHADOW;
  59.             mouse_events: 0;
  60.             description {
  61.                state: "default" 0.0;
  62.                rel1 {
  63.                   relative: 1.0 0.0;
  64.                   offset:   0   0;
  65.                   to_x:     "icon";
  66.                }
  67.                rel2 {
  68.                   relative: 1.0 0.0;
  69.                   offset:   -1  0;
  70.                   to_y:     "line";
  71.                }
  72.                color:  255 255 255 255;
  73.                color3:   0   0   0  50;
  74.                text {
  75.                   text:  "Taunton";
  76.                   font:  "Vera Bold";
  77.                   size:  12;
  78.                   min:   1 1;
  79.                   align: 0.5 0.5;
  80.                }
  81.             }
  82.             description {
  83.                state: "simple" 0.0;
  84.                rel1 {
  85.                   relative: 0.0 1.0;
  86.                   offset:   0   -1;
  87.                   to_y:     "temp";
  88.                }
  89.                rel2 {
  90.                   relative: 1.0 1.0;
  91.                   offset:   -1  -1;
  92.                }
  93.                color:  255 255 255 255;
  94.                color3:   0   0   0  60;
  95.                text {
  96.                   text:  "Taunton";
  97.                   font:  "Vera";
  98.                   size:  10;
  99.                   min:   1 1;
  100.                   align: 0.5 0.5;
  101.                }
  102.             }
  103.          }
  104.          part {
  105.             name:         "line";
  106.             type:         RECT;
  107.             effect:       SOFT_SHADOW;
  108.             mouse_events: 0;
  109.             description {
  110.                state: "default" 0.0;
  111.                align: 0.5 0.5;
  112.                max:   99999 1;
  113.                rel1 {
  114.                   relative: 1.0 0.0;
  115.                   offset:   -1  0;
  116.                   to_x:     "icon";
  117.                }
  118.                rel2 {
  119.                   relative: 1.0 1.0;
  120.                   offset:   -1  -1;
  121.                }
  122.                color:  255 255 255 255;
  123.                color3:   0   0   0  60;
  124.             }
  125.             description {
  126.                state:   "hidden" 0.0;
  127.                visible: 0;
  128.             }
  129.          }
  130.          part {
  131.             name:         "conditions";
  132.             type:         TEXT;
  133.             effect:       SOFT_SHADOW;
  134.             mouse_events: 0;
  135.             description {
  136.                state: "default" 0.0;
  137.                rel1 {
  138.                   relative: 1.0 1.0;
  139.                   offset:   -1  -1;
  140.                   to_x:     "icon";
  141.                   to_y:     "line";
  142.                }
  143.                rel2 {
  144.                   relative: 1.0 1.0;
  145.                   offset:   -1  -1;
  146.                }
  147.                color:  255 255 255 255;
  148.                color3:   0   0   0  60;
  149.                text {
  150.                   text:  "Fair";
  151.                   font:  "Vera";
  152.                   size:  10;
  153.                   min:   1 1;
  154.                   align: 0.5 0.5;
  155.                }
  156.             }
  157.             description {
  158.                state:   "hidden" 0.0;
  159.                visible: 0;
  160.                text {
  161.                   text: "";
  162.                }
  163.             }
  164.          }
  165.       }
  166.       programs {
  167.          program {
  168.             name:    "style";
  169.             signal:  "set_style";
  170.             source:  "*";
  171.             script {
  172.                if (!strcmp(src, "simple")) {
  173.                   set_state(PART:"location", "simple", 0.0);
  174.                   set_state(PART:"conditions", "hidden", 0.0);
  175.                  set_state(PART:"line", "hidden", 0.0);
  176.                } else {
  177.                   set_state(PART:"location", "default", 0.0);
  178.                   set_state(PART:"conditions", "default", 0.0);
  179.                   set_state(PART:"line", "default", 0.0);
  180.                }
  181.             }
  182.          }
  183.       }
  184.    }
  185. }
  186.